﻿

#region Using

using System;

#endregion

namespace PureMVC.Interfaces
{
	/// <summary>
	/// 
	/// </summary>
    public interface IController
    {
		/// <summary>
		/// 注册命令的方法
		/// </summary>
		/// <param name="notificationName"></param>
		/// <param name="commandType"></param>
        void RegisterCommand(string notificationName, Type commandType);
		/// <summary>
		/// 执行命令
		/// </summary>
		/// <param name="notification"></param>
		void ExecuteCommand(INotification notification);

		void RemoveCommand(string notificationName);

		bool HasCommand(string notificationName);
	}
}
